/**
 * 
 */
package com.hand.cloud.b2b.daos;

import com.hand.cloud.b2b.model.EPOrderModel;
import com.hand.cloud.b2b.model.TB_OrderModel;
import com.hand.cloud.b2b.model.TB_TradeModel;
import com.taobao.api.domain.Order;
import com.taobao.api.domain.Trade;


/**
 * @author StephenWang
 * @Time Aug 14, 20142:27:19 PM
 */
public interface TBTradeDAO
{
	/**
	 * 将淘宝返回对象转化为TB_Trade
	 * 
	 * @param trade
	 * @return
	 */
	public TB_TradeModel createTBTrade(final Trade trade);

	/**
	 * 创建TB_OrderModel
	 * 
	 * @param order
	 */
	public TB_OrderModel createTBOrder(final Order order);

	/**
	 * 获取TB_Trade
	 * 
	 * @param pk
	 * @return
	 */
	public TB_TradeModel getTradeByPK(final String pk);

	/**
	 * 获取TB_Order
	 * 
	 * @param pk
	 * @return TB_OrderModel
	 */

	public TB_OrderModel getOrderByPK(final String pk);

	/**
	 * 更新TB_Order订单的状态
	 * 
	 * @param pk
	 * @return
	 */

	public void changeTBTradeStatus(EPOrderModel epOrder);

}
